package com.ruoyi.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: wqg
 */
@Component
@ConfigurationProperties(prefix = "rocketmq.topics")
public class RocketMqTopics {
    private static String repaymentTopic;

    private static String loanApplyTopic;

    private static String loanResultTopic;

    private static int maxReconsumeTimes;

    public static int getMaxReconsumeTimes() {
        return maxReconsumeTimes;
    }

    public void setMaxReconsumeTimes(int maxReconsumeTimes) {
        RocketMqTopics.maxReconsumeTimes = maxReconsumeTimes;
    }

    public static String getLoanResultTopic() {
        return loanResultTopic;
    }

    public void setLoanResultTopic(String loanResultTopic) {
        RocketMqTopics.loanResultTopic = loanResultTopic;
    }

    public static String getLoanApplyTopic() {
        return loanApplyTopic;
    }

    public void setLoanApplyTopic(String loanApplyTopic) {
        RocketMqTopics.loanApplyTopic = loanApplyTopic;
    }

    public static String getRepaymentTopic() {
        return repaymentTopic;
    }

    public void setRepaymentTopic(String repaymentTopic) {
        RocketMqTopics.repaymentTopic = repaymentTopic;
    }

}
